package com.a85.wxhelper.receiver;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;

import com.a85.wxhelper.WXMain;


/**
 * @author hejiangwei
 * Created at 2018/7/3.
 *
 * 接收发来的wx消息
 */
public class ReceiveMsgReceiver extends BroadcastReceiver {
    public static boolean open=false;


    @Override
    public void onReceive(Context context, Intent intent) {
        open=true;
        Intent intentLaunch = new Intent();
        intentLaunch.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intentLaunch.setComponent(new ComponentName(
                "de.robv.android.xposed.installer",
                "de.robv.android.xposed.installer.WelcomeActivity"));
        context.startActivity(intentLaunch);
    }

}
